// @ts-nocheck
export const switchTab = (url: string, time: number) => {
    setTimeout(() => {
        uni.switchTab({
            url: url
        })
    }, time)
}

export const navigateBack = (time: number) => {
    setTimeout(() => {
        uni.navigateBack()
    }, time)
}

export const navigateTo = (url: string) => {
    uni.navigateTo({
        url: url
    })
}

export const redirectTo = (url: string, time: number) => {
    setTimeout(() => {
        uni.redirectTo({
            url: url
        })
    }, time)
}

export const reLaunchTo = (url: string, time: number) => {
    setTimeout(() => {
        uni.reLaunch({
            url: url
        })
    }, time)
}
